package com.wyh.mapper.groupOne.resource;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyh.domain.po.groupOne.resource.ResourceSub;
import org.apache.ibatis.annotations.Param;

public interface MasterDataResourceSubMapper extends BaseMapper<ResourceSub> {

    //拆分资源变更前
    ResourceSub getLatestBeforeChange(@Param("resourceid") Integer resourceid);
    //拆分资源变更后
    ResourceSub getLatestAfterChange(@Param("resourceid") Integer resourceid);
    //拆分的新数据
    ResourceSub getLatestNewResource(@Param("resourceid") Integer resourceid);
    //合并资源变更前
    ResourceSub getLatestCombineBeforeChange(@Param("resourceid") Integer resourceid);
    //合并资源变更后
    ResourceSub getLatestCombineAfterChange(@Param("resourceid") Integer resourceid);


}
